﻿

	
<!DOCTYPE html>  
<html>  
<head>  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
    <meta name="keywords" content="职位汇总">  
    <meta name="description" content="职位汇总">  
    <title>职位汇总</title>  
    
    <%@ include file="/WEB-INF/inc/default.jsp"%>
    <jsp:include page="/WEB-INF/inc/dic.jsp"/>

</head> 
 
<body>  
    
      
    <table id="dg"  style="height:555px"  
            url="/report/report/jobsumlist.do"  
            toolbar="#toolbar" pagination="true"  
            rownumbers="true" pageSize="20" fitColumns="true" loadMsg="正在查询,请稍候..." singleSelect="false">  

    </table>  
    <div id="toolbar">  
    	  <form>
           客户:<input id="input_custName" name="custName" class="easyui-box" style="width:80px">
           职位:<input id="input_custName" name="jobName" class="easyui-box" style="width:80px">
           职位状态:<input class="easyui-combobox"   name="jobStatus" style="width:100px;"  data-options="data:__getConstantCategory('JobStatus'),valueField:'code', textField:'value', multiple:false,panelHeight:'auto',mode:'remote' ">
           职位执行人:<input class="easyui-combobox"   name="partner" style="width:100px;"  data-options="url:'/auth/systemUser/userlist.do',valueField:'account', textField:'name', multiple:false,panelHeight:'auto',mode:'remote' ">
           <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="quickQuery()">查询</a>
        </form>
    </div>  
    
    
    <script type="text/javascript">  
        var url;  
        
        
		    
		    
        
      
        function reload(){        	
        	  $('#dg').datagrid('reload');
        }
        function find(){  
              
                //$('#dlg_query').dialog('open').dialog('setTitle','查询');  
                
                //url = '/project/contractJobCvOffer/list.do';  
                 queryWin.window('open');   
                 queryWin.openWin=window; 
              
        } 
        function quickQuery(){                                  
                var formdata='{';
                formdata='custName:'+'"'+$('#input_custName').val()+'"'+'}';
                formdata=',jobName:'+'"'+$('#input_jobName').val()+'"'+'}';
                formdata=',cvName:'+'"'+$('#input_cvName').val()+'"'+'}';
                formdata='}';
                
                var jsondata=eval('('+formdata+')');
                
                //if (!$('#fm_query').form('validate')) return; 
                $('#dg').datagrid({
	                  queryParams: jsondata
                });
               //$('#dlg_query').dialog('close');
              
        }
        	
        function query(formdata){  
                
                $('#dg').datagrid({
	                  queryParams: array2json(formdata)
                });
              
        }
        
        //生成grid的字段,需要字典的自动转换
        $('#dg').datagrid({
        	   columns:[[        	   	        	   	            	   	        	   	      
        	   	        	   	        	   	
        	   	   {field:'jobManager',title:'负责人', width:100}
        	   	   ,{field:'deptName',title:'负责人部门', width:100}
        	   	   ,{field:'jobName',title:'客户简称', width:100}
        	   	   ,{field:'jobName',title:'职位名称', width:100}
        	   	   ,{field:'jobStatusName',title:'职位状态', width:100,hidden:true}
        	   	   ,{field:'createDt',title:'开始日期', width:100}
        	   	   ,{field:'jobdays',title:'周期(天)', width:100}
        	   	   ,{field:'offerDt',title:'预计OFFER时间', width:100}
        	   	   ,{field:'jobStatus',title:'职位进展', width:100}
        	   	   ,{field:'jdCount',title:'发JD数', width:100}
        	   	   ,{field:'recomCount',title:'推荐数', width:100}
        	   	   ,{field:'offerCount',title:'录用数', width:100}
        	   	   ,{field:'workCount',title:'录用数', width:100}
        	   	   ,{field:'estimateAr',title:'业绩金额', width:100
        	   	   	   ,formatter: function(value,row,index){
        	   		      	return commafy(value);
        	   		      }
        	   	   	}
        	   	   
        	   	  
        	   	   
        	   	
        	   	
        	   ]]
        	   
        }); 
        //完成-生成grid的字段
        
        
        
    </script>  
     
     

     
     
     
</body>  
</html>